﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UploadSong.ascx.cs" Inherits="QTMusic.UserControls.UploadSong" %>

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Panel ID="UploadForm" runat="server">
    <table>
        <tr>
            <td align="left" style="width:100px;">Song file</td>
            <td colspan="2">
                <ajaxToolkit:AsyncFileUpload ID="AsyncFileUpload1" runat="server" Width="400px" UploaderStyle="Modern" ThrobberID="pnlUploading" />
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td colspan="2">
                <asp:Panel ID="pnlUploading" runat="server" BackImageUrl="~/Resources/WebImages/ajax-loader.gif">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td align="left" style="width:100px;">Song name</td>
            <td>
                <asp:TextBox ID="InputSongname" runat="server" TextMode="SingleLine"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldSongname" runat="server" 
                        ErrorMessage="You must enter a song name" ControlToValidate="InputSongname"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width:100px;">Artist</td>
            <td>
                <ajaxToolkit:AutoCompleteExtender ID="AutoSuggestArtist" runat="server" TargetControlID="InputArtist"
                                    ServicePath="~/WebServices/WebService.asmx" ServiceMethod="SuggestArtists" 
                                    MinimumPrefixLength="2">
                </ajaxToolkit:AutoCompleteExtender>
                <asp:TextBox ID="InputArtist" runat="server" TextMode="SingleLine" EnableViewState="true"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldArtist" runat="server" 
                        ErrorMessage="You must enter an artist name" ControlToValidate="InputArtist"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="left" style="width:100px;">Share option</td>
            <td>
                <asp:DropDownList ID="LstShareOption" runat="server">
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
    </table>

    <%-- <asp:Panel ID="OptionalInformationPanel" ClientIDMode="Static"  CssClass="display_none" runat="server">--%>
        <table>
            <tr>
                <td align="left" style="width:100px;">Genre</td>
                <td>
                    <ajaxToolkit:AutoCompleteExtender ID="AutoSuggestGenre" runat="server" TargetControlID="InputGenre"
                                    ServicePath="~/WebServices/WebService.asmx" ServiceMethod="SuggestGenres" 
                                    MinimumPrefixLength="2">
                    </ajaxToolkit:AutoCompleteExtender>
                    <asp:TextBox ID="InputGenre" runat="server" TextMode="SingleLine" EnableViewState="true"></asp:TextBox>
                </td>
                <td align="left" style="width:100px;">Composer</td>
                <td>
                    <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteComposer" runat="server" TargetControlID="InputComposer"
                                    ServicePath="~/WebServices/WebService.asmx" ServiceMethod="SuggestComposers" 
                                    MinimumPrefixLength="2">
                    </ajaxToolkit:AutoCompleteExtender>
                    <asp:TextBox ID="InputComposer" runat="server" TextMode="SingleLine" EnableViewState="true"></asp:TextBox>
                    
                </td>
            </tr>
            <tr>
                <td align="left" style="width:100px;">Album</td>
                <td>
                    <ajaxToolkit:AutoCompleteExtender ID="AutoCompleteAlbum" runat="server" TargetControlID="InputAlbum"
                                    ServicePath="~/WebServices/WebService.asmx" ServiceMethod="SuggestAlbums" 
                                    MinimumPrefixLength="2">
                    </ajaxToolkit:AutoCompleteExtender>
                    <asp:TextBox ID="InputAlbum" runat="server" TextMode="SingleLine" EnableViewState="true"></asp:TextBox>
                </td>
                <td align="left">Release</td>
                <td>
                
                    <asp:TextBox ID="InputReleaseDate" runat="server" TextMode="SingleLine" EnableViewState="true" ReadOnly="true"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="InputDob_CalendarExtender" runat="server" 
                        Enabled="True" TargetControlID="InputReleaseDate" PopupButtonID="BtnPopupCalendar" Format="dd/MM/yyyy">
                    </ajaxToolkit:CalendarExtender>
                    <asp:ImageButton ID="BtnPopupCalendar" runat="server" ImageUrl="~/Resources/WebImages/Calendar_scheduleHS.png" />
                </td>  
            </tr>
            <tr>
                <td align="left" style="width:100px;">Description</td>
                <td colspan="3">
                    <asp:TextBox ID="InputDescription" runat="server" TextMode="MultiLine" Width="400px" Height="50px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" style="width:100px;"></td>
                <td>
                    <asp:Label ID="LblUploadInform" runat="server" Text=" " EnableViewState="false"></asp:Label>
                </td>
                <td>
                </td>
            </tr>
            <tr>
            <td align="left" style="width:100px;"></td>
            <td colspan="2">
                <asp:Button ID="BtnUpload" runat="server" Text="Upload" OnClick="BtnUpload_click" CssClass="button_modded"/>
                <asp:Button ID="BtnUploadAndShare" runat="server" Text="Up & share" OnClick="BtnUploadAndShare_click" CssClass="button_modded"/>
            </td>
        </tr>
       </table>
       <%-- 
    </asp:Panel>
                        
    <asp:ImageButton ID="BtnToggleOptionalPanel" ClientIDMode="Static" runat="server" ImageUrl="~/Resources/WebImages/show_optional_panel.png" Width="100%" OnClientClick="return Toggle('OptionalInformationPanel');" />
    --%>
</asp:Panel>
